import request  from '@/utils/request';

import { BASE_URL, OPS_URL, OWNER_URL } from '@/config/query';

export async function queryCount() {
  return request(`${OWNER_URL}/owner/get_user_count`)
}

export async function queryPage(params = { pageSize: 10, pageNum: 1 }) {
  return request(`${OWNER_URL}/owner/page_user_statistics`, params)
}

export async function queryPageAll(params = { pageSize: 1000, pageNum: 1 }) {
  return request(`${OWNER_URL}/owner/page_user_statistics`, params)
}

// 通过token查同单位下的部门
export async function groupListByToken() {
  return request(`${OPS_URL}/group/list_by_token`)
}
